<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Facelet Title</title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>
    <h:body>
        <h:form id="login-form">

            <div align="center">
                <p:panel id="login-panel" header="#{bundle.Login_Title}" styleClass="header">
                    <h:panelGrid columns="2" styleClass="login-style">
                        <f:facet name="header">
                            <p:messages id="messages"/>
                        </f:facet>

                        <h:outputLabel value="#{bundle.Username}" for="txtUsername" styleClass="txt-label" />
                        <h:inputText id="txtUsername" value="#{loginController.username}" styleClass="txt-box"/>
                        <h:outputLabel value="#{bundle.Password}" for="txtPassword" styleClass="txt-label"/>
                        <h:inputSecret id="txtPassword" value="#{loginController.password}" styleClass="txt-box"/>
                        <h:outputText value=" "/>
                        <h:panelGroup>
                            <h:commandButton value="#{bundle.Login_Submit}" action="#{loginController.login}" styleClass="my-button"/>
                            <h:outputText value=" " />
                            <h:commandButton value="#{bundle.Cancel}" type="reset" styleClass="my-button"/>
                        </h:panelGroup>
                    </h:panelGrid>
                </p:panel>
            </div>
        </h:form>
    </h:body>







</html>

